package com.stone.db.jdbc.mapper;

import com.stone.db.jdbc.entity.DriverRecord;

import java.util.Date;
import java.util.List;

/**
 * <p>Created with IntelliJ IDEA. </p>
 * <p>User: Stony </p>
 * <p>Date: 2016/6/27 </p>
 * <p>Time: 18:02 </p>
 * <p>Version: 1.0 </p>
 */
public interface DriverRecordMapper {


    int insert(DriverRecord record);

    int update(DriverRecord record);

    int delete(int id);


    int deleteAll();

    List<DriverRecord> selectAll();

    List<DriverRecord> selectById(int id);

    List<DriverRecord> queryRecordById(int id);

    List<DriverRecord> queryRecordByDate(Date date);
}
